package com.socialuni.jimei.controller.social;

import com.socialuni.api.model.ResultRO;
import com.socialuni.sdk.model.RO.SocialUserDetailRO;
import com.socialuni.sdk.service.SocialUserBindPhoneNumService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("phone")
public class PhoneController {
    @Resource
    SocialUserBindPhoneNumService socialUserBindPhoneNumService;

    @PostMapping("bindSocialPhoneNum")
    public ResultRO<SocialUserDetailRO> bindSocialPhoneNum() {
        SocialUserDetailRO socialOAuthUserRO = socialUserBindPhoneNumService.bindSocialPhoneNum();
        return new ResultRO<>(socialOAuthUserRO);
    }
}